home *** CD-ROM | disk | FTP | other *** search
/ Champak 61 / Volume 61 - JOGO DISK .iso / Games / casa-da-claudia.swf / scripts / frame_1 / DoAction.as
Text File  |  2008-03-17  |  568b  |  36 lines

  1. function decoexe()
  2. {
  3.    var k = 1;
  4.    while(k <= deconum)
  5.    {
  6.       if(k < 10)
  7.       {
  8.          k = "0" + k;
  9.       }
  10.       this["yojo_" + k].onPress = function()
  11.       {
  12.          btdown(this._name);
  13.       };
  14.       this["yojo_" + k].onRelease = function()
  15.       {
  16.          btup(this._name);
  17.       };
  18.       k++;
  19.    }
  20. }
  21. function btdown(name)
  22. {
  23.    startDrag(name,0);
  24.    swnum++;
  25.    this[name].swapDepths(swnum);
  26.    this[name].depth = swnum;
  27.    deconame = name;
  28. }
  29. function btup(name)
  30. {
  31.    stopDrag();
  32. }
  33. deconum = 100;
  34. stop();
  35. decoexe();
  36.